package cn.hd01.service;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.hd01.repository.entity.KValueDetail;
import cn.hd01.repository.entity.RebateSummary;

public interface RebateSummaryService extends BaseService<RebateSummary, Integer> {
	RebateSummary findByRefIdAndType(Integer refId, String type);
	
	BigDecimal findSummary(Integer refId, String type, String beginTime, String endTime, Date righTime);
	
	List<Object[]> findSummary();
	
	Page<KValueDetail> findAll(KValueDetail kValueDetail, Pageable pageable);
}
